#ifndef _WX_XH_PROPGRID_H_
#define _WX_XH_PROPGRID_H_

#include "wx/xrc/xmlres.h"
#include "wx/propgrid/propgrid.h"
#include "wx/propgrid/manager.h"

class wxPropertyGridXmlHandler : public wxXmlResourceHandler {
    friend class wxPropertyGridXrcPopulator;
    DECLARE_DYNAMIC_CLASS( wxPropertyGridXmlHandler )
  public:
    wxPropertyGridXmlHandler();
    virtual wxObject *DoCreateResource();
    virtual bool CanHandle( wxXmlNode *node );
    void InitPopulator();
    void PopulatePage( wxPropertyGridState* state );
    void DonePopulator();
    void HandlePropertyGridParams();
  private:
    wxPropertyGridManager*      m_manager;
    wxPropertyGrid*             m_pg;
    wxPropertyGridPopulator*    m_populator;
};

#endif
